package com.hyphenate.easeui.widget;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RadioGroup;

import com.hyphenate.chatuidemo.widget.ParentViewPager;
import com.joplus.housekeeper.R;
import com.joplus.housekeeper.adapter.EaseChatMenuAdapter;

/**
 * Created by zisheng on 2017/9/21.
 */

public class EaseChatMenu extends LinearLayout {

    private ParentViewPager vp;
    private RadioGroup rg;

    public EaseChatMenu(Context context) {
        super(context);
        init(context);
    }


    public EaseChatMenu(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    public EaseChatMenu(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    private void init(Context context) {
        View view = LayoutInflater.from(context).inflate(R.layout.ease_chat_gifmenu, null);
        vp = (ParentViewPager) view.findViewById(R.id.vp);
        rg = (RadioGroup) view.findViewById(R.id.rg);
        ;
     //   vp.setAdapter(new EaseChatMenuAdapter(context));
        addView(view);
    }
}
